using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;
using SJVars;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using yWriter6.My.Resources;

namespace yWriter6
{
	[DesignerGenerated]
	internal class frmEditorSettings : Form
	{
		private IContainer components;

		public ToolTip ToolTip1;

		[CompilerGenerated]
		[AccessedThroughProperty("chkCreateTextToo")]
		private CheckBox _chkCreateTextToo;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdCancel")]
		private Button _cmdCancel;

		[CompilerGenerated]
		[AccessedThroughProperty("optSameFile")]
		private RadioButton _optSameFile;

		[CompilerGenerated]
		[AccessedThroughProperty("txtFreq")]
		private TextBox _txtFreq;

		[CompilerGenerated]
		[AccessedThroughProperty("optSequential")]
		private RadioButton _optSequential;

		[CompilerGenerated]
		[AccessedThroughProperty("Label1")]
		private Label _Label1;

		[CompilerGenerated]
		[AccessedThroughProperty("Label4")]
		private Label _Label4;

		[CompilerGenerated]
		[AccessedThroughProperty("Label3")]
		private Label _Label3;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdOK")]
		private Button _cmdOK;

		[CompilerGenerated]
		[AccessedThroughProperty("Label5")]
		private Label _Label5;

		[CompilerGenerated]
		[AccessedThroughProperty("Label2")]
		private Label _Label2;

		[CompilerGenerated]
		[AccessedThroughProperty("TabControl1")]
		private TabControl _TabControl1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage1")]
		private TabPage _TabPage1;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage2")]
		private TabPage _TabPage2;

		[CompilerGenerated]
		[AccessedThroughProperty("Label6")]
		private Label _Label6;

		[CompilerGenerated]
		[AccessedThroughProperty("txtPunctuationChar")]
		private TextBox _txtPunctuationChar;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdDefault")]
		private Button _cmdDefault;

		[CompilerGenerated]
		[AccessedThroughProperty("TabPage3")]
		private TabPage _TabPage3;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdDefaultThes")]
		private Button _cmdDefaultThes;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdDefaultDict")]
		private Button _cmdDefaultDict;

		[CompilerGenerated]
		[AccessedThroughProperty("Label8")]
		private Label _Label8;

		[CompilerGenerated]
		[AccessedThroughProperty("Label7")]
		private Label _Label7;

		[CompilerGenerated]
		[AccessedThroughProperty("txtThesURL")]
		private TextBox _txtThesURL;

		[CompilerGenerated]
		[AccessedThroughProperty("txtDictURL")]
		private TextBox _txtDictURL;

		public virtual CheckBox chkCreateTextToo
		{
			[CompilerGenerated]
			get
			{
				return _chkCreateTextToo;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = chkCreateTextToo_CheckedChanged;
				CheckBox chkCreateTextToo = _chkCreateTextToo;
				if (chkCreateTextToo != null)
				{
					chkCreateTextToo.CheckedChanged -= value2;
				}
				_chkCreateTextToo = value;
				chkCreateTextToo = _chkCreateTextToo;
				if (chkCreateTextToo != null)
				{
					chkCreateTextToo.CheckedChanged += value2;
				}
			}
		}

		public virtual Button cmdCancel
		{
			[CompilerGenerated]
			get
			{
				return _cmdCancel;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdCancel_Click;
				Button cmdCancel = _cmdCancel;
				if (cmdCancel != null)
				{
					cmdCancel.Click -= value2;
				}
				_cmdCancel = value;
				cmdCancel = _cmdCancel;
				if (cmdCancel != null)
				{
					cmdCancel.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("optSameFile")]
		public virtual RadioButton optSameFile
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtFreq")]
		public virtual TextBox txtFreq
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("optSequential")]
		public virtual RadioButton optSequential
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label1")]
		public virtual Label Label1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label4")]
		public virtual Label Label4
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label3")]
		public virtual Label Label3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual Button cmdOK
		{
			[CompilerGenerated]
			get
			{
				return _cmdOK;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdOK_Click;
				Button cmdOK = _cmdOK;
				if (cmdOK != null)
				{
					cmdOK.Click -= value2;
				}
				_cmdOK = value;
				cmdOK = _cmdOK;
				if (cmdOK != null)
				{
					cmdOK.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label5")]
		public virtual Label Label5
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		public virtual Label Label2
		{
			[CompilerGenerated]
			get
			{
				return _Label2;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = Label2_Click;
				Label label = _Label2;
				if (label != null)
				{
					label.Click -= value2;
				}
				_Label2 = value;
				label = _Label2;
				if (label != null)
				{
					label.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TabControl1")]
		internal virtual TabControl TabControl1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage1")]
		internal virtual TabPage TabPage1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("TabPage2")]
		internal virtual TabPage TabPage2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label6")]
		internal virtual Label Label6
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtPunctuationChar")]
		internal virtual TextBox txtPunctuationChar
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdDefault
		{
			[CompilerGenerated]
			get
			{
				return _cmdDefault;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdDefault_Click;
				Button cmdDefault = _cmdDefault;
				if (cmdDefault != null)
				{
					cmdDefault.Click -= value2;
				}
				_cmdDefault = value;
				cmdDefault = _cmdDefault;
				if (cmdDefault != null)
				{
					cmdDefault.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("TabPage3")]
		internal virtual TabPage TabPage3
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdDefaultThes
		{
			[CompilerGenerated]
			get
			{
				return _cmdDefaultThes;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdDefaultThes_Click;
				Button cmdDefaultThes = _cmdDefaultThes;
				if (cmdDefaultThes != null)
				{
					cmdDefaultThes.Click -= value2;
				}
				_cmdDefaultThes = value;
				cmdDefaultThes = _cmdDefaultThes;
				if (cmdDefaultThes != null)
				{
					cmdDefaultThes.Click += value2;
				}
			}
		}

		internal virtual Button cmdDefaultDict
		{
			[CompilerGenerated]
			get
			{
				return _cmdDefaultDict;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdDefaultDict_Click;
				Button cmdDefaultDict = _cmdDefaultDict;
				if (cmdDefaultDict != null)
				{
					cmdDefaultDict.Click -= value2;
				}
				_cmdDefaultDict = value;
				cmdDefaultDict = _cmdDefaultDict;
				if (cmdDefaultDict != null)
				{
					cmdDefaultDict.Click += value2;
				}
			}
		}

		[field: AccessedThroughProperty("Label8")]
		internal virtual Label Label8
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label7")]
		internal virtual Label Label7
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtThesURL")]
		internal virtual TextBox txtThesURL
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtDictURL")]
		internal virtual TextBox txtDictURL
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[DebuggerNonUserCode]
		public frmEditorSettings()
		{
			base.Load += frmEditorSettings_Load;
			InitializeComponent();
		}

		[DebuggerNonUserCode]
		protected override void Dispose(bool Disposing)
		{
			if (Disposing && components != null)
			{
				components.Dispose();
			}
			base.Dispose(Disposing);
		}

		[System.Diagnostics.DebuggerStepThrough]
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(yWriter6.frmEditorSettings));
			ToolTip1 = new System.Windows.Forms.ToolTip(components);
			chkCreateTextToo = new System.Windows.Forms.CheckBox();
			txtPunctuationChar = new System.Windows.Forms.TextBox();
			cmdDefault = new System.Windows.Forms.Button();
			Label7 = new System.Windows.Forms.Label();
			Label8 = new System.Windows.Forms.Label();
			cmdCancel = new System.Windows.Forms.Button();
			optSameFile = new System.Windows.Forms.RadioButton();
			txtFreq = new System.Windows.Forms.TextBox();
			optSequential = new System.Windows.Forms.RadioButton();
			Label1 = new System.Windows.Forms.Label();
			Label4 = new System.Windows.Forms.Label();
			Label3 = new System.Windows.Forms.Label();
			cmdOK = new System.Windows.Forms.Button();
			Label5 = new System.Windows.Forms.Label();
			Label2 = new System.Windows.Forms.Label();
			TabControl1 = new System.Windows.Forms.TabControl();
			TabPage1 = new System.Windows.Forms.TabPage();
			TabPage2 = new System.Windows.Forms.TabPage();
			TabPage3 = new System.Windows.Forms.TabPage();
			cmdDefaultThes = new System.Windows.Forms.Button();
			cmdDefaultDict = new System.Windows.Forms.Button();
			Label6 = new System.Windows.Forms.Label();
			txtThesURL = new System.Windows.Forms.TextBox();
			txtDictURL = new System.Windows.Forms.TextBox();
			TabControl1.SuspendLayout();
			TabPage1.SuspendLayout();
			TabPage2.SuspendLayout();
			TabPage3.SuspendLayout();
			SuspendLayout();
			chkCreateTextToo.BackColor = System.Drawing.Color.Transparent;
			chkCreateTextToo.Cursor = System.Windows.Forms.Cursors.Default;
			chkCreateTextToo.Font = new System.Drawing.Font("Segoe UI", 10f);
			chkCreateTextToo.ForeColor = System.Drawing.SystemColors.ControlText;
			chkCreateTextToo.Location = new System.Drawing.Point(115, 253);
			chkCreateTextToo.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			chkCreateTextToo.Name = "chkCreateTextToo";
			chkCreateTextToo.RightToLeft = System.Windows.Forms.RightToLeft.No;
			chkCreateTextToo.Size = new System.Drawing.Size(390, 28);
			chkCreateTextToo.TabIndex = 9;
			chkCreateTextToo.Text = "Create a text file mirror when saving rtf scenes";
			ToolTip1.SetToolTip(chkCreateTextToo, "Not needed on most systems");
			chkCreateTextToo.UseVisualStyleBackColor = false;
			txtPunctuationChar.Location = new System.Drawing.Point(10, 33);
			txtPunctuationChar.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			txtPunctuationChar.Name = "txtPunctuationChar";
			txtPunctuationChar.Size = new System.Drawing.Size(559, 25);
			txtPunctuationChar.TabIndex = 12;
			ToolTip1.SetToolTip(txtPunctuationChar, "Any characters in this list will not be visible to the spell checker");
			cmdDefault.Location = new System.Drawing.Point(577, 33);
			cmdDefault.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			cmdDefault.Name = "cmdDefault";
			cmdDefault.Size = new System.Drawing.Size(31, 28);
			cmdDefault.TabIndex = 14;
			cmdDefault.Text = "D";
			ToolTip1.SetToolTip(cmdDefault, "Reset to default");
			cmdDefault.UseVisualStyleBackColor = true;
			Label7.AutoSize = true;
			Label7.Location = new System.Drawing.Point(28, 149);
			Label7.Name = "Label7";
			Label7.Size = new System.Drawing.Size(402, 19);
			Label7.TabIndex = 13;
			Label7.Text = "Dictionary Lookup URL or EXE (Put @@@ where the word goes)";
			ToolTip1.SetToolTip(Label7, "Put a @@@ where the word goes");
			Label8.AutoSize = true;
			Label8.Location = new System.Drawing.Point(28, 237);
			Label8.Name = "Label8";
			Label8.Size = new System.Drawing.Size(402, 19);
			Label8.TabIndex = 13;
			Label8.Text = "Thesaurus Lookup URL or EXE (Put @@@ where the word goes)";
			ToolTip1.SetToolTip(Label8, "Put a @@@ where the word goes");
			cmdCancel.BackColor = System.Drawing.SystemColors.Control;
			cmdCancel.Cursor = System.Windows.Forms.Cursors.Default;
			cmdCancel.Font = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdCancel.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdCancel.Location = new System.Drawing.Point(20, 436);
			cmdCancel.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			cmdCancel.Name = "cmdCancel";
			cmdCancel.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdCancel.Size = new System.Drawing.Size(82, 50);
			cmdCancel.TabIndex = 5;
			cmdCancel.Text = "Cancel";
			cmdCancel.UseVisualStyleBackColor = true;
			optSameFile.BackColor = System.Drawing.Color.Transparent;
			optSameFile.Checked = true;
			optSameFile.Cursor = System.Windows.Forms.Cursors.Default;
			optSameFile.Font = new System.Drawing.Font("Segoe UI", 10f);
			optSameFile.ForeColor = System.Drawing.SystemColors.ControlText;
			optSameFile.Location = new System.Drawing.Point(26, 24);
			optSameFile.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			optSameFile.Name = "optSameFile";
			optSameFile.RightToLeft = System.Windows.Forms.RightToLeft.No;
			optSameFile.Size = new System.Drawing.Size(286, 34);
			optSameFile.TabIndex = 10;
			optSameFile.TabStop = true;
			optSameFile.Text = "Save backups to the same file";
			optSameFile.UseVisualStyleBackColor = false;
			txtFreq.AcceptsReturn = true;
			txtFreq.BackColor = System.Drawing.SystemColors.Window;
			txtFreq.Cursor = System.Windows.Forms.Cursors.IBeam;
			txtFreq.Font = new System.Drawing.Font("Segoe UI", 10f);
			txtFreq.ForeColor = System.Drawing.SystemColors.WindowText;
			txtFreq.Location = new System.Drawing.Point(357, 129);
			txtFreq.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			txtFreq.MaxLength = 0;
			txtFreq.Name = "txtFreq";
			txtFreq.RightToLeft = System.Windows.Forms.RightToLeft.No;
			txtFreq.Size = new System.Drawing.Size(32, 25);
			txtFreq.TabIndex = 6;
			txtFreq.Text = "5";
			txtFreq.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
			optSequential.BackColor = System.Drawing.Color.Transparent;
			optSequential.Cursor = System.Windows.Forms.Cursors.Default;
			optSequential.Font = new System.Drawing.Font("Segoe UI", 10f);
			optSequential.ForeColor = System.Drawing.SystemColors.ControlText;
			optSequential.Location = new System.Drawing.Point(26, 123);
			optSequential.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			optSequential.Name = "optSequential";
			optSequential.RightToLeft = System.Windows.Forms.RightToLeft.No;
			optSequential.Size = new System.Drawing.Size(324, 40);
			optSequential.TabIndex = 3;
			optSequential.TabStop = true;
			optSequential.Text = "Save backups to sequential files every";
			optSequential.UseVisualStyleBackColor = false;
			Label1.BackColor = System.Drawing.Color.Transparent;
			Label1.Cursor = System.Windows.Forms.Cursors.Default;
			Label1.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label1.ForeColor = System.Drawing.SystemColors.ControlText;
			Label1.Location = new System.Drawing.Point(58, 62);
			Label1.Name = "Label1";
			Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Label1.Size = new System.Drawing.Size(547, 34);
			Label1.TabIndex = 11;
			Label1.Text = "Use this option if you've never deleted a paragraph by mistake.";
			Label4.BackColor = System.Drawing.Color.Transparent;
			Label4.Cursor = System.Windows.Forms.Cursors.Default;
			Label4.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label4.ForeColor = System.Drawing.SystemColors.ControlText;
			Label4.Location = new System.Drawing.Point(408, 132);
			Label4.Name = "Label4";
			Label4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Label4.Size = new System.Drawing.Size(197, 30);
			Label4.TabIndex = 7;
			Label4.Text = "mins (Recommended)";
			Label3.BackColor = System.Drawing.Color.Transparent;
			Label3.Cursor = System.Windows.Forms.Cursors.Default;
			Label3.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label3.ForeColor = System.Drawing.SystemColors.WindowText;
			Label3.Location = new System.Drawing.Point(37, 179);
			Label3.Name = "Label3";
			Label3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Label3.Size = new System.Drawing.Size(573, 50);
			Label3.TabIndex = 4;
			Label3.Text = "This option can use a lot of disk space. e.g. after 3-4 months editing a novel I had over 28mb of backups.";
			cmdOK.BackColor = System.Drawing.SystemColors.Control;
			cmdOK.Cursor = System.Windows.Forms.Cursors.Default;
			cmdOK.Font = new System.Drawing.Font("Arial", 8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
			cmdOK.ForeColor = System.Drawing.SystemColors.ControlText;
			cmdOK.Location = new System.Drawing.Point(547, 436);
			cmdOK.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			cmdOK.Name = "cmdOK";
			cmdOK.RightToLeft = System.Windows.Forms.RightToLeft.No;
			cmdOK.Size = new System.Drawing.Size(82, 50);
			cmdOK.TabIndex = 0;
			cmdOK.Text = "OK";
			cmdOK.UseVisualStyleBackColor = true;
			Label5.BackColor = System.Drawing.Color.Transparent;
			Label5.Cursor = System.Windows.Forms.Cursors.Default;
			Label5.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label5.ForeColor = System.Drawing.SystemColors.ControlText;
			Label5.Location = new System.Drawing.Point(43, 180);
			Label5.Name = "Label5";
			Label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Label5.Size = new System.Drawing.Size(541, 147);
			Label5.TabIndex = 8;
			Label5.Text = resources.GetString("Label5.Text");
			Label2.BackColor = System.Drawing.Color.Transparent;
			Label2.Cursor = System.Windows.Forms.Cursors.Default;
			Label2.Font = new System.Drawing.Font("Segoe UI", 10f);
			Label2.ForeColor = System.Drawing.SystemColors.ControlText;
			Label2.Location = new System.Drawing.Point(43, 39);
			Label2.Name = "Label2";
			Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			Label2.Size = new System.Drawing.Size(561, 125);
			Label2.TabIndex = 1;
			Label2.Text = resources.GetString("Label2.Text");
			TabControl1.Controls.Add(TabPage1);
			TabControl1.Controls.Add(TabPage2);
			TabControl1.Controls.Add(TabPage3);
			TabControl1.Location = new System.Drawing.Point(15, 15);
			TabControl1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabControl1.Name = "TabControl1";
			TabControl1.SelectedIndex = 0;
			TabControl1.Size = new System.Drawing.Size(636, 403);
			TabControl1.TabIndex = 10;
			TabPage1.Controls.Add(optSameFile);
			TabPage1.Controls.Add(txtFreq);
			TabPage1.Controls.Add(optSequential);
			TabPage1.Controls.Add(chkCreateTextToo);
			TabPage1.Controls.Add(Label1);
			TabPage1.Controls.Add(Label3);
			TabPage1.Controls.Add(Label4);
			TabPage1.Location = new System.Drawing.Point(4, 26);
			TabPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage1.Name = "TabPage1";
			TabPage1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage1.Size = new System.Drawing.Size(628, 373);
			TabPage1.TabIndex = 0;
			TabPage1.Text = "Autobackups";
			TabPage1.UseVisualStyleBackColor = true;
			TabPage2.Controls.Add(Label2);
			TabPage2.Controls.Add(Label5);
			TabPage2.Location = new System.Drawing.Point(4, 26);
			TabPage2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage2.Name = "TabPage2";
			TabPage2.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage2.Size = new System.Drawing.Size(628, 373);
			TabPage2.TabIndex = 1;
			TabPage2.Text = "Help";
			TabPage2.UseVisualStyleBackColor = true;
			TabPage3.Controls.Add(cmdDefaultThes);
			TabPage3.Controls.Add(cmdDefaultDict);
			TabPage3.Controls.Add(cmdDefault);
			TabPage3.Controls.Add(Label8);
			TabPage3.Controls.Add(Label7);
			TabPage3.Controls.Add(Label6);
			TabPage3.Controls.Add(txtThesURL);
			TabPage3.Controls.Add(txtDictURL);
			TabPage3.Controls.Add(txtPunctuationChar);
			TabPage3.Location = new System.Drawing.Point(4, 26);
			TabPage3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage3.Name = "TabPage3";
			TabPage3.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
			TabPage3.Size = new System.Drawing.Size(628, 373);
			TabPage3.TabIndex = 2;
			TabPage3.Text = "Other";
			TabPage3.UseVisualStyleBackColor = true;
			cmdDefaultThes.Location = new System.Drawing.Point(577, 205);
			cmdDefaultThes.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			cmdDefaultThes.Name = "cmdDefaultThes";
			cmdDefaultThes.Size = new System.Drawing.Size(31, 28);
			cmdDefaultThes.TabIndex = 14;
			cmdDefaultThes.Text = "D";
			cmdDefaultThes.UseVisualStyleBackColor = true;
			cmdDefaultDict.Location = new System.Drawing.Point(577, 118);
			cmdDefaultDict.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			cmdDefaultDict.Name = "cmdDefaultDict";
			cmdDefaultDict.Size = new System.Drawing.Size(31, 28);
			cmdDefaultDict.TabIndex = 14;
			cmdDefaultDict.Text = "D";
			cmdDefaultDict.UseVisualStyleBackColor = true;
			Label6.AutoSize = true;
			Label6.Location = new System.Drawing.Point(28, 64);
			Label6.Name = "Label6";
			Label6.Size = new System.Drawing.Size(152, 19);
			Label6.TabIndex = 13;
			Label6.Text = "Punctuation Characters";
			txtThesURL.Location = new System.Drawing.Point(10, 205);
			txtThesURL.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			txtThesURL.Name = "txtThesURL";
			txtThesURL.Size = new System.Drawing.Size(559, 25);
			txtThesURL.TabIndex = 12;
			txtDictURL.Location = new System.Drawing.Point(10, 118);
			txtDictURL.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			txtDictURL.Name = "txtDictURL";
			txtDictURL.Size = new System.Drawing.Size(559, 25);
			txtDictURL.TabIndex = 12;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			BackColor = System.Drawing.SystemColors.Control;
			base.ClientSize = new System.Drawing.Size(663, 503);
			base.Controls.Add(TabControl1);
			base.Controls.Add(cmdCancel);
			base.Controls.Add(cmdOK);
			Cursor = System.Windows.Forms.Cursors.Default;
			Font = new System.Drawing.Font("Segoe UI", 10f);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			base.Location = new System.Drawing.Point(4, 23);
			base.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "frmEditorSettings";
			RightToLeft = System.Windows.Forms.RightToLeft.No;
			base.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			Text = "Editor Settings";
			TabControl1.ResumeLayout(false);
			TabPage1.ResumeLayout(false);
			TabPage1.PerformLayout();
			TabPage2.ResumeLayout(false);
			TabPage3.ResumeLayout(false);
			TabPage3.PerformLayout();
			ResumeLayout(false);
		}

		private void cmdCancel_Click(object eventSender, EventArgs eventArgs)
		{
			Hide();
		}

		private void cmdOK_Click(object eventSender, EventArgs eventArgs)
		{
			if (optSameFile.Checked)
			{
				clsShared.cSettings.sSet("AutoBackupSequential", false);
			}
			else
			{
				clsShared.cSettings.sSet("AutoBackupSequential", true);
				clsShared.cSettings.sSet("SequentialFrequency", txtFreq.Text);
			}
			clsShared.cSettings.sSet("CreateTextToo", RuntimeHelpers.GetObjectValue(Interaction.IIf(chkCreateTextToo.CheckState == CheckState.Checked, true, false)));
			clsShared.cSettings.sSet("PunctuationChars", txtPunctuationChar.Text);
			clsShared.cSettings.sSet("DictionaryURL", txtDictURL.Text);
			clsShared.cSettings.sSet("ThesaurusURL", txtThesURL.Text);
			Hide();
		}

		private void frmEditorSettings_Load(object eventSender, EventArgs eventArgs)
		{
			base.Icon = Resources.yWriter5_Ico;
			if (!clsShared.cSettings.sGet("AutoBackupSequential", DefaultIfUnknown: true))
			{
				optSameFile.Checked = true;
			}
			else
			{
				optSequential.Checked = true;
				txtFreq.Text = Conversions.ToString(clsShared.cSettings.sGet("SequentialFrequency", 5));
			}
			chkCreateTextToo.CheckState = (CheckState)Conversions.ToInteger(Interaction.IIf(clsShared.cSettings.sGet("CreateTextToo", DefaultIfUnknown: false), CheckState.Checked, CheckState.Unchecked));
			if (Operators.CompareString(clsShared.cLang.CurrentLanguage, "English", TextCompare: false) != 0)
			{
				clsShared.cLang.TranslateForm(this);
			}
			txtPunctuationChar.Text = clsShared.cSettings.sGet("PunctuationChars", "!,.:;{}[]\\|~`@#$%^&*()_+-=<>?/¿¡‘’");
			clsShared.cFormFont.SetFormFont(this, clsShared.cSettings.sGet("FormFont", modVariables.DefaultUIFont.Name), clsShared.cSettings.sGet("UIFontSize", modVariables.DefaultUIFont.Size));
			txtDictURL.Text = clsShared.cSettings.sGet("DictionaryURL", "http://dictionary.reference.com/search?q=@@@");
			txtThesURL.Text = clsShared.cSettings.sGet("ThesaurusURL", "http://thesaurus.reference.com/search?q=@@@");
		}

		private void Label2_Click(object sender, EventArgs e)
		{
		}

		private void chkCreateTextToo_CheckedChanged(object sender, EventArgs e)
		{
		}

		private void cmdDefault_Click(object sender, EventArgs e)
		{
			txtPunctuationChar.Text = "!,.:;{}[]\\|~`@#$%^&*()_+-=<>?/¿¡‘’";
		}

		private void cmdDefaultDict_Click(object sender, EventArgs e)
		{
			txtDictURL.Text = "http://dictionary.reference.com/search?q=@@@";
		}

		private void cmdDefaultThes_Click(object sender, EventArgs e)
		{
			txtThesURL.Text = "http://thesaurus.reference.com/search?q=@@@&db=roget";
		}
	}
}
